package com.leo.train.business.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class ConfirmOrderSaveDto {
    private Long memberId;

    @NotNull(message = "【日期】不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;
    @NotNull(message = "【车次编号】不能为空")
    private String trainCode;
    @NotNull(message = "【出发站】不能为空")
    private String start;
    @NotNull(message = "【到达站】不能为空")
    private String end;
    @NotNull(message = "【余票ID】不能为空")
    private Long dailyTrainTicketId;
    @NotNull(message = "【车票】不能为空")
    private List<ConfirmOrderTicketDto> tickets;
    @NotNull(message = "【图片验证码】不能为空")
    private String imageCode;
    @NotNull(message = "【图片验证码】参数非法")
    private String imageCodeToken;
    private String logId;  // 日志跟踪号
    private int lineNumber; // 排队人数
}
